package cn.hznc.controller.uploadfilestrategy;

import cn.hznc.configuration.MinioHelper;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;

/**
 * @Author：Administrator
 * @Date：2024/2/28 11:09
 */
@Component
public class DownloadMinio implements DownFileStrategy{

    @Resource
    private MinioHelper minioHelper;

    @Override
    public void downFile(HttpServletResponse response, String filename) {
        minioHelper.downloadGetObjectStream(response , filename);
    }
}
